<?php
include_once("admin/inc.php");
include_once($INCLUDE."/main/help_manager.php");
include_once($INCLUDE."/main/tpl_load.php");

if (!isset($db_access)) {
	include_once($INCLUDE."/main/database_access.php");
	$db_access = new DataBaseAccess();
}
$helpMgr = new HelpManager($db_access->getConnection());
$tplHelpBoard = new TplLoad();

if (isset($_GET["com"])) {
	$str_name = $_GET["com"];
	$str_tip = (isset($_GET["tip"])) ? $_GET["tip"] : "" ;	
	$tplHelpBoard->assign("url", $URL."/help_board.php");
	$tplHelpBoard->assign("com", $str_name);
	$tplHelpBoard->assign("board", $helpMgr->getTipsArray($str_name, $str_tip));
}

if ($bool_callByMain) {
	$tplHelpBoard->assign("callByMain", $bool_callByMain);
}

$tplHelpBoard->display("help_board.tpl");

?>